package cn.com.open.errorquestion.model;

import cn.com.open.errorquestion.util.SnowflakeIdWorker;

import java.io.Serializable;
import java.util.Date;

public class AnswerQuestionLog implements Serializable{

    /**
     * 唯一标识（雪花算法）
     */
//    SnowflakeIdWorker snowflakeIdWorker = new SnowflakeIdWorker(0,0);
//    private Long id =   snowflakeIdWorker.nextId();
    private Long id;

    /**
     * 机构标识
     */
    private String organizationId;

    /**
     * 考生标识
     */
    private String examineeId;

    /**
     * 课程Id
     */
    private String courseId;

    /**
     * 知识点标识
     */
    private String knowledgePointId;

    /**
     * 试卷标识
     */
    private String paperId;

    /**
     * 试题标识
     */
    private String questionId;

    /**
     * 题型标识  单选 = 1,多选 = 2,判断 = 3,填空= 4,阅读理解 = 5,问答（简答） = 6,完型填空 = 7,匹配 = 8,上传附件 = 9,组合= 10,组合单选=11,组合多选=12,排序题=13
     */
    private Integer questionType;

    /**
     * 试题难度
     */
    private Double questionDifficult;

    /**
     * 是否正确 0:错误 1：正确
     */
    private int answerStates;

    /**
     * 正确个数
     */
    private int trueCount;

    /**
     * 错误个数
     */
    private int falseCount;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 试题Json
     */
    private String contentJson;

    /**
     * 分表对应表
     */
    private int tableNumber;

    public int getTableNumber() {
        return tableNumber;
    }

    public void setTableNumber(int tableNumber) {
        this.tableNumber = tableNumber;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getExamineeId() {
        return examineeId;
    }

    public void setExamineeId(String examineeId) {
        this.examineeId = examineeId;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getKnowledgePointId() {
        return knowledgePointId;
    }

    public void setKnowledgePointId(String knowledgePointId) {
        this.knowledgePointId = knowledgePointId;
    }

    public String getPaperId() {
        return paperId;
    }

    public void setPaperId(String paperId) {
        this.paperId = paperId;
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public Integer getQuestionType() {
        return questionType;
    }

    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }

    public Double getQuestionDifficult() {
        return questionDifficult;
    }

    public void setQuestionDifficult(Double questionDifficult) {
        this.questionDifficult = questionDifficult;
    }

    public int getTrueCount() {
        return trueCount;
    }

    public void setTrueCount(int trueCount) {
        this.trueCount += trueCount;
    }

    public int getFalseCount() {
        return falseCount;
    }

    public void setFalseCount(int falseCount) {
        this.falseCount += falseCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getContentJson() {
        return contentJson;
    }

    public void setContentJson(String contentJson) {
        this.contentJson = contentJson;
    }

    public int getAnswerStates() {
        return answerStates;
    }

    public void setAnswerStates(int answerStates) {
        this.answerStates = answerStates;
    }
}
